package com.board.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "修改账号角色参数对象")
public class UpdateAccountRoleForm {
    @ApiModelProperty("要修改的账号id")
    @NotNull(message = "要修改的账号id不能为空")
    @Min(value = 0,message = "要修改的账号id不能小于0")
    private Integer accountId;
    @ApiModelProperty("修改后的账号角色id")
    @NotNull(message = "修改后的账号角色id不能为空")
    @Min(value = 0,message = "修改后的账号角色id不能小于0")
    private Integer roleId;
}
